home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- ** $Id: qpsprinter.h,v 2.9 1998/07/03 00:09:40 hanord Exp $
- **
- ** *** INTERNAL HEADER FILE ***
- **
- ** This file is NOT a part of the Qt interface!
- **
- ** Definition of internal QPSPrinter class.
- ** QPSPrinter implements PostScript (tm) output via QPrinter.
- **
- ** Created : 940927
- **
- ** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
- **
- ** This file is part of Qt Free Edition, version 1.40.
- **
- ** See the file LICENSE included in the distribution for the usage
- ** and distribution terms, or http://www.troll.no/free-license.html.
- **
- ** IMPORTANT NOTE: You may NOT copy this file or any part of it into
- ** your own programs or libraries.
- **
- ** Please see http://www.troll.no/pricing.html for information about
- ** Qt Professional Edition, which is this same library but with a
- ** license which allows creation of commercial/proprietary software.
- **
- *****************************************************************************/
-
- #ifndef QPSPRINTER_H
- #define QPSPRINTER_H
-
- #ifndef QT_H
- #include "qprinter.h"
- #include "qtextstream.h"
- #endif // QT_H
-
-
- struct QPSPrinterPrivate;
-
- class QPSPrinter : public QPaintDevice
- {
- private:
- // QPrinter uses these
- QPSPrinter( QPrinter *, int );
- ~QPSPrinter();
-
- bool cmd ( int, QPainter *, QPDevCmdParam * );
-
- friend class QPrinter;
- private:
- // QPrinter does not use these
-
- QPrinter *printer;
- QPSPrinterPrivate *d;
- QTextStream stream;
- int pageCount;
- bool dirtyMatrix;
- bool dirtyNewPage;
- bool epsf;
- QString fontsUsed;
-
- void matrixSetup( QPainter * );
- void clippingSetup( QPainter * );
- void setClippingOff( QPainter * );
- void orientationSetup();
- void newPageSetup( QPainter * );
- void resetDrawingTools( QPainter * );
- void emitHeader();
- void setFont( const QFont & );
- void drawImage( QPainter *, const QPoint &, const QImage & );
-
- // Disabled copy constructor and operator=
- QPSPrinter( const QPSPrinter & );
- QPSPrinter &operator=( const QPSPrinter & );
- };
-
-
- // Additional commands for QPSPrinter
-
- #define PDC_PRT_NEWPAGE 100
- #define PDC_PRT_ABORT 101
-
-
- #endif // QPSPRINTER_H
-